import request from '@/utils/request'

export default{
    //1.生成订单的接口
    createOrders(courseId){
        return request({
            url:`/eduorder/order/createOrder/${courseId}`,
            method:'post'
        })
    },
    //查询订单的结果
    getOrdersInfo(id){
        return request({
            url:`/eduorder/order/getOrderInfo/${id}`,
            method:'get'
        })
    },
    //生成二维码
    createNatvie(orderNo){
        return request({
            url:`/eduorder/paylog/createNative/${orderNo}`,
            method:'get'
        })
    },
    //查询订单
    queryPayStatus(orderNo){
        return request({
            url:`/eduorder/paylog/queryPayStatus/${orderNo}`,
            method:'get'
        })
    }
}